package com.nondo.rdp.finance.service.impl.analysis;

import com.nondo.rdp.finance.domain.analysis.AnalysisRead;
import com.nondo.rdp.finance.repository.analysis.AnalysisReadRepository;
import com.nondo.rdp.finance.service.analysis.AnalysisReadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class AnalysisReadServiceImpl implements AnalysisReadService {
    @Autowired
    AnalysisReadRepository analysisReadRepository;

    @Override
    public AnalysisRead save(AnalysisRead analysisRead) {
        return this.analysisReadRepository.save(analysisRead);
    }

    @Override
    public AnalysisRead findByAidAndUid(long aid, long uid) {
        return analysisReadRepository.findByAidAndUid(aid, uid);
    }
}